package cn.lzd.mr.case5;

import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.io.WritableComparator;

/**
 * Created by lzd on 2018/6/1.
 */
public class Case5Group extends WritableComparator {

    public Case5Group() {
        super(Case5Bean.class, true);
    }

    @Override
    public int compare(WritableComparable a, WritableComparable b) {
        Case5Bean aa = (Case5Bean) a;
        Case5Bean bb = (Case5Bean) b;
        return aa.getOrderid().compareTo(bb.getOrderid());
    }
}
